package com.zefor.pojo;

import java.util.Date;
import java.util.List;

public class CorralPojo {
    //栏舍id
    private Long id;

    //栏舍名称
    private String name;

    //其下所属环控设备
    private List<EquipmentPojo> equipments;

    //创建时间
    private Date createTime;

    public CorralPojo() {
    }

    public CorralPojo(Long id, String name, List<EquipmentPojo> equipments, Date createTime) {
        this.id = id;
        this.name = name;
        this.equipments = equipments;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<EquipmentPojo> getEquipments() {
        return equipments;
    }

    public void setEquipments(List<EquipmentPojo> equipments) {
        this.equipments = equipments;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CorralPojo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", equipments=" + equipments +
                ", createTime=" + createTime +
                '}';
    }
}
